from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def wd(self):
        loc=(By.XPATH,'//android.widget.ImageView[@resource-id="com.kongfz.app:id/lav_5"]')
        ele=self.find_ele(loc)
        return ele
    def zhanghao(self):
        loc=(By.ID,'com.kongfz.app:id/et_login_name')
        ele=self.find_ele(loc)
        return ele
    def pwd(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.kongfz.app:id/et_pwd")')
        ele=self.find_ele(loc)
        return ele
    def ys(self):
        loc=(By.ID,'com.kongfz.app:id/iconf_privacy')
        ele=self.find_ele(loc)
        return ele
    def dl(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.kongfz.app:id/tv_confirm_btn"]')
        ele=self.find_ele(loc)
        return ele
    def dingdan(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.kongfz.app:id/tv_order"]')
        ele=self.find_ele(loc)
        return ele
